package cn.acac.yygh.dict;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-cmn")
public interface DictFeignClient {

    /**
     * 医院服务调用字典服务查询信息
     * @param value
     * @return
     */
    @GetMapping("/admin/cmn/{value}")
    public String findNameByValue(@PathVariable("value")String value);

    /**
     * 医院服务调用字典服务查询信息
     * @param value
     * @return
     */
    @GetMapping("/admin/cmn/{dictCode}/{value}")
    public String findNameByValue(@PathVariable("dictCode")String dictCode,@PathVariable("value")String value);
}
